package com.by.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.github.classgraph.json.Id;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;


import java.io.Serializable;
import java.util.Date;

/**
 * 订单项;
 * @author : http://www.chiner.pro
 * @date : 2025-4-14
 */
@Data
@ApiModel(value = "订单项",description = "")
@TableName(value="order_item")
@Accessors(chain = true)
public class OrderItem implements Serializable,Cloneable {
    /** 订单项ID */
    @Id
    @ApiModelProperty(name = "订单项ID", notes = "")
    private Integer  orderItemId;

    /**
     * 店铺id
     */
    @ApiModelProperty(name = "店铺id", notes = "")
    private Integer shopId;
    /**
     * 订单id
     */
    @ApiModelProperty(name = "订单id", notes = "")
    private Integer orderId;
    /**
     * 分类id
     */
    @ApiModelProperty(name = "分类id", notes = "")
    private Integer categoryId;
    /** 产品ID */
    @ApiModelProperty(name = "产品ID", notes = "")
    private Integer spuId;
    /** 产品SkuID */
    @ApiModelProperty(name = "产品SkuID", notes = "")
    private Integer  skuId;
    /**
     * 用户Id
     */
    @ApiModelProperty(name = "用户Id", notes = "")
    private Integer userId;
    /**
     * 购物车产品个数
     */
    @ApiModelProperty(name = "购物车产品个数", notes = "")
    private Integer count;
    /**
     * 产品名称
     */
    @ApiModelProperty(name = "产品名称", notes = "")
    private String spuName;
    /**
     * sku名称
     */
    @ApiModelProperty(name = "sku名称", notes = "")
    private String skuName;
    /**
     * 产品主图片路径
     */
    @ApiModelProperty(name = "产品主图片路径", notes = "")
    private String pic;
    /**
     * 单个orderItem的配送类型3：无需快递
     */
    @ApiModelProperty(name = "单个orderItem的配送类型3：无需快递", notes = "")
    private int deliveryType;

    /**
     * 产品价格
     */
    @ApiModelProperty(name = "产品价格", notes = "")
    private Integer price;
    /**
     * 商品总金额
     */
    @ApiModelProperty(name = "商品总金额", notes = "")
    private double spuTotalAmount;
}